UIImage變為NSData並進行壓縮 //sdk中提供了方法可以直接調用 UIImage *img = [UIImage imageNamed:@"some.png"]; NSData *dataObj = UIImageJPEGR ...